// ------------------------------------------------------ Naming ------------------------------------------------------
Name AH1G Huey Cobra v2
ShortName AH1Gv2
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon AH1G
Model evp2.AH1Gv2
Texture AH1Gv2
//Third Person Camera Distance
CameraDistance 15.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 0.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Heli
//Throttle
MaxThrottle 3.5
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 3
TurnRightSpeed 3
//Pitch modifiers
LookUpSpeed 3
LookDownSpeed 3
//Roll modifiers
RollLeftSpeed 3
RollRightSpeed 3
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.8
//Lift
//Lift 2.5
//Wheels (Fake wheels imitating skids)
NumWheels 4
WheelPosition 0 -32 -10 -24
WheelPosition 1 -32 -10 24
WheelPosition 2 48 -10 24
WheelPosition 3 48 -10 -24
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
HeliPropeller 0 0 48 0 blades metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Missile
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 25
ShootDelaySecondary 50
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary False
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointSecondary 12 9 -25 rightWing
ShootPointSecondary 12 9 25 leftWing
ShootPointPrimary 12 7 -16 rightWing HydraPod
ShootPointPrimary 12 7 16 leftWing HydraPod
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 4
AllowAllAmmo False
AddAmmo mk4Rocket
AddAmmo musicdisc
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 5000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 22 11 0
Passengers 1
Passenger 1 45 7 0 nose -125 125 -30 0 minigun Nose
GunOrigin 1 50 -10 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound HelicopterStart
StartSoundLength 100
PropSound Cobra_engine
PropSoundLength 80
ShootSoundPrimary Hydra
ShootSoundSecondary RocketFire1
// ------------------------------------------------------ Recipe ------------------------------------------------------
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 1 advancedMetalCockpit
AddRecipeParts skids 2 helicopterSkid
AddRecipeParts blades 2 helicopterBlade
AddRecipeParts rightWing 1 blockRedstone 1 blockIron
AddRecipeParts leftWing 1 blockRedstone 1 blockIron
AddRecipeParts tail 1 metalTail 1 metalPropeller
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 6 green
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 300 -29 0 -8 99 36 16
SetupPart blades 100 -49 20 -8 42 16 16
SetupPart tail 100 -130 0 -8 106 21 16
BulletDetection 10